package cn.itsource.pethome.base.mapper;


import cn.itsource.pethome.base.query.BaseQuery;
import org.springframework.stereotype.Component;

import java.util.List;
public interface BaseMapper<T> {
    List<T> queryAll();

    T queryOne(Long id);

    List<T> pageQueryAll(BaseQuery TQuery);

    Long count(BaseQuery TQuery);

    void insert(T t);

    void update(T t);

    void delete(Long id);
    //批量删除
    void deleteAll(List<Long> ids);
}
